﻿
using SuperSocket.ProtoBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WinServer;

namespace BeginEndMarkReceiveFilter_Client
{

    public class MyPackageInfo : IPackageInfo
    {
        public MyPackageInfo(byte[] header, byte[] bodyBuffer,byte[] tailer)
        {
            Header = header;
            Data = bodyBuffer;
            Tailer = tailer;
        }       
        /// 服务器返回的字节数据头部      
        public byte[] Header { get; set; }

        /// 服务器返回的字节数据尾部      
        public byte[] Tailer { get; set; }

        /// 服务器返回的字节数据       
        public byte[] Data { get; set; }
       
        /// 服务器返回的字符串数据       
        public string Body
        {
            get
            {
                return Encoding.UTF8.GetString(Data);
            }
        }
    }
}
